package com.njust.RateMyTray_backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("t_window")
public class Window implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("window_name")
    private String windowName;
    
    private String description;
    
    @TableField("canteen_name")
    private String canteenName;
    
    private Integer floor;
    
    @TableField("phone_number")
    private String phoneNumber;

    @TableField("price_per_person")
    private Integer pricePerPerson;
    
    @TableField("business_hours")
    private String businessHours; // JSON string

    @TableField("cover_image_url")
    private String coverImageUrl;

    private String announcement;

    private String status;

    @TableField("merchant_id")
    private Long merchantId;

    @TableField("average_rating")
    private BigDecimal averageRating;

    @TableField("rating_count")
    private Integer ratingCount;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
} 